package contrl;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;

import service.Jedis;

public class test {

	public static void main(String[] args) throws MalformedURLException {
		
		
		
		String url = "http://localhost:8080/HYDB/jedisService";    
         HessianProxyFactory factory = new HessianProxyFactory();    
         Jedis jedis = (Jedis) factory.create(    
                 Jedis.class, url);    
         System.out.println(jedis.type("hello hessian"));  

	}

}
